package com.gao.domain;


import java.util.Date;

public class Order {
	//ע�⣺������orders����Ϊorder�ǹؼ���
	private String oid;
	private User user;
	private String state;
	private double amount;
	//private LocalDateTime createTime;
	private Date createTime;
	
	public Order() {
		super();
	}

	public Order(String oid) {
		super();
		this.oid = oid;
	}

	public Order(String oid, User user, double amount) {
		super();
		this.oid = oid;
		this.user = user;
		this.amount = amount;
	}

	public Order(String oid, User user, String state, double amount,Date date) {
		super();
		this.oid = oid;
		this.user = user;
		this.state = state;
		this.amount = amount;
		this.createTime = date;
	}

	public String getOid() {
		return oid;
	}

	public void setOid(String oid) {
		this.oid = oid;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "Order [oid=" + oid + ", user=" + user + ", state=" + state + ", amount=" + amount + ", createTime="
				+ createTime + "]";
	}

	
	
	
}
